package com.fivefu.core.gb28181.service;

import javax.sip.InvalidArgumentException;
import javax.sip.SipException;
import java.text.ParseException;

public interface CatalogDeviceService {

    /**
     * 查询目录和设备结构
     * @param deviceID
     * @param CmdType (Catalog:目录,DeviceInfo:设备,DeviceStatus:设备状态)
     * @throws InvalidArgumentException
     * @throws ParseException
     * @throws SipException
     */
    void queryCatalogDevice(String deviceID, String CmdType) throws InvalidArgumentException, ParseException, SipException;

    /**
     * 云台操作
     * @param deviceID 设备编号
     * @param ptzType 云台操作
     * @param active 状态(0:停止,1:启动)
     * @param speed 速度
     * @throws InvalidArgumentException
     * @throws ParseException
     * @throws SipException
     */
    void ptzDevice(String deviceID, String ptzType, Integer active, Integer speed) throws InvalidArgumentException, ParseException, SipException;

}
